package com.jdym.back.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 贷款计算器
 * </p>
 *
 * @author ${author}
 * @since 2021-09-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Calculator对象", description="贷款计算器")
public class Calculator implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "计算器id")
      @TableId(value = "counter_id", type = IdType.AUTO)
    private Integer counterId;

    @ApiModelProperty(value = "合作银行id")
    private Integer cobankId;

    @ApiModelProperty(value = "贷款期限")
    private LocalDateTime loanTime;

    @ApiModelProperty(value = "贷款金额")
    private BigDecimal loanAmount;

    @ApiModelProperty(value = "还款本金")
    private BigDecimal repayment;

    @ApiModelProperty(value = "还款利息")
    private BigDecimal repaymentRate;

    @ApiModelProperty(value = "月均还款")
    @TableField("Monthly_pay")
    private BigDecimal monthlyPay;

    @ApiModelProperty(value = "计算机编号")
    private String counterNo;

    @ApiModelProperty(value = "还款方式")
    private String repaymentMethod;

    @ApiModelProperty(value = "年均还款")
    private BigDecimal yearlyPay;


}
